package com.kotlin.day01

import org.junit.Test

class Test02Range {
    @Test
    fun test01() {
        val age = 3;
        if(age in 0..3){
            println("婴儿")
        }else if(age in 3..12){
            println("幼儿")
        }else {
            println("位置")
        }


        val school = "小学"
        val result = when(school){
            "学前班"->"幼儿"
            "小学"->"少年"
            "中学"->"青年"
            else->"未知"
        }
        println(result)

    }
}